package com.ss.demo.springbootdemo.web.usedemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 作者: MrZhangJR
 * 时间: 2021/11/8 15:33
 * 描述:
 */
public class UseDemo {
    public static void main(String[] args) {
        ApplicationContext ac = new AnnotationConfigApplicationContext("com.ss.demo.springbootdemo.web.usedemo");
        Account account = ac.getBean("account", Account.class);
        System.out.println("account = " + account);
    }
}
